<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>groovyShell配置</title>
    <link href="../../../static/css/controls.css" rel="stylesheet"/>
    <link href="../../../static/css/engine.css" rel="stylesheet">
    <script src="../../../bower_components/requirejs/require.js" data-main="/static/app.js"
            data-bootstrap-modules="'system2/component/groovyShell/GroovyShellModule'"></script>
</head>
<body ng-controller="GroovyShellController" style="height: auto">
<div class="engine-popup">
    <form name="GroovyShellModelForm" g-validator="GroovyShellModel_{{add?'Save':'Update'}}" data-invalid-msg="tooltipMessenger">
        <input type="hidden" name="id" ng-model="groovyShell.id"/>
        <input type="hidden" name="projectId" ng-model="groovyShell.projectId"/>
        <input type="hidden" name="projectCode" ng-model="groovyShell.projectCode"/>
        <div class="attribute-form-group" style="width: 33%;float: left;margin-left: 20px">
            <div>脚本名称:</div>
            <div class="attribute-form-group-r">
                <input type="text" name="shellName" ng-model="groovyShell.shellName" />
            </div>
            <div class="clear"></div>
        </div>
        <div class="attribute-form-group" style="width:33%;float: left">
            <div>方法名称:</div>
            <div class="attribute-form-group-r">
                <input type="text" name="functionName" ng-model="groovyShell.functionName" />
            </div>
            <div class="clear"></div>
        </div>

        <div style="display: inline-flex;">
            <div style="margin-left: 20px;margin-bottom:10px;">
                <div>脚本内容:</div>
                <div style="float:left;width:100%;">
                    <textarea name="scriptText" style="height: 190px;width: 600px;resize:none" ng-model="groovyShell.scriptText"  rows="10"></textarea>
                </div>
                <div class="clear"></div>
            </div>
        </div>

        <div class="tck-line"></div>
        <div class="tck-b">
            <button type="button" class="engine-btn-default" ng-click="submit()">确认</button>
            <button type="button" class="engine-btn-default" ng-click="cancel()">取消</button>
        </div>
    </form>
</div>
</body>
</html>